package com.tadpole.music.bean.study;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created By 孙岩
 * on 2020/9/28
 */
public class ErrorQuestionFootBean {

    /**
     * code : 200
     * data : {"current_page":1,"total":3,"data":[{"class":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"节奏识别"},"rank":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"初级"},"err_nums":17},{"class":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"音级辨别"},"rank":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"中级"},"err_nums":5},{"class":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"符号听辨"},"rank":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"中级"},"err_nums":9}],"page_size":10,"last_page":1}
     * msg : success
     */

    private int code;
    private DataBeanX data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBeanX {
        /**
         * current_page : 1
         * total : 3
         * data : [{"class":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"节奏识别"},"rank":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"初级"},"err_nums":17},{"class":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"音级辨别"},"rank":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"中级"},"err_nums":5},{"class":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"符号听辨"},"rank":{"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"中级"},"err_nums":9}]
         * page_size : 10
         * last_page : 1
         */

        private int current_page;
        private int total;
        private int page_size;
        private int last_page;
        private List<DataBean> data;


        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getLast_page() {
            return last_page;
        }

        public void setLast_page(int last_page) {
            this.last_page = last_page;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * class : {"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"节奏识别"}
             * rank : {"created_at":"0001-01-01 00:00:00","updated_at":"0001-01-01 00:00:00","name":"初级"}
             * err_nums : 17
             */

            @SerializedName("class")
            private ClassBean classX;
            private RankBean rank;
            private int err_nums;

            public DataBean(ClassBean classX, RankBean rank, int err_nums) {
                this.classX = classX;
                this.rank = rank;
                this.err_nums = err_nums;
            }

            public ClassBean getClassX() {
                return classX;
            }

            public void setClassX(ClassBean classX) {
                this.classX = classX;
            }

            public RankBean getRank() {
                return rank;
            }

            public void setRank(RankBean rank) {
                this.rank = rank;
            }

            public int getErr_nums() {
                return err_nums;
            }

            public void setErr_nums(int err_nums) {
                this.err_nums = err_nums;
            }

            public static class ClassBean {
                /**
                 * created_at : 0001-01-01 00:00:00
                 * updated_at : 0001-01-01 00:00:00
                 * name : 节奏识别
                 */

                private String created_at;
                private String updated_at;
                private String name;

                public ClassBean(String name) {
                    this.name = name;
                }

                public String getCreated_at() {
                    return created_at;
                }

                public void setCreated_at(String created_at) {
                    this.created_at = created_at;
                }

                public String getUpdated_at() {
                    return updated_at;
                }

                public void setUpdated_at(String updated_at) {
                    this.updated_at = updated_at;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class RankBean {
                /**
                 * created_at : 0001-01-01 00:00:00
                 * updated_at : 0001-01-01 00:00:00
                 * name : 初级
                 */

                private String created_at;
                private String updated_at;
                private String name;

                public RankBean(String name) {
                    this.name = name;
                }

                public String getCreated_at() {
                    return created_at;
                }

                public void setCreated_at(String created_at) {
                    this.created_at = created_at;
                }

                public String getUpdated_at() {
                    return updated_at;
                }

                public void setUpdated_at(String updated_at) {
                    this.updated_at = updated_at;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }
        }
    }
}
